package com.supermap.originTest2;


public class Test3DModuleBuilder {

    /**
     * 程序入口点
     * The entrance of the programme.
     */
    public static void main(String[] args) {


//
//
//		Workspace workspace = new Workspace();
//		WorkspaceConnectionInfo conInfo = new WorkspaceConnectionInfo(
//				"E:\\MapData\\202405\\三维测试\\WorkSpace.smwu");
//		conInfo.setType(WorkspaceType.SMWU);
//		workspace.open(conInfo);
//		Datasource d = workspace.getDatasources().get("dspj6054");
//		DatasetVector datasetVector = (DatasetVector) d.getDatasets().get("build");
//		DatasetVector datasetVector2 = (DatasetVector) d.getDatasets().get("NewModel");
//
//		Recordset recordset = datasetVector.getRecordset(false, CursorType.STATIC);
//		GeoModel3D geoModel3D = (GeoModel3D) recordset.getGeometry();
//
//		Model model = geoModel3D.getModel();
//		Model newModel = new Model();
//
////		ModelBuilder3D.textureBoundaryOptimization(model, newModel, Color.red);
//		ModelBuilder3D.optimizeSkeletons(model, newModel);
//
//
//		geoModel3D.setModel(newModel);
//
//		datasetVector2.append(recordset);
//		datasetVector.close();
//		datasetVector2.close();
//		workspace.save();
//		workspace.dispose();







	}


}  

